package org.knight.gearbox.opr.impl;

import org.knight.gearbox.opr.Action;
import org.knight.gearbox.opr.Condition;
import org.knight.gearbox.opr.DecisionTable;

import java.util.List;

public  class DefaultDecisionTable<T> implements DecisionTable<T> {

    private List<Condition<T>> contions;
    private List<Action<T>> actions;

    @Override
    public void execute(T t) {

    }

    @Override
    public List<Condition> getConditions() {
        return (List)contions;
    }

    @Override
    public List<Action> getActions() {
        return (List)actions;
    }

    public void setContions(List<Condition<T>> contions) {
        this.contions = contions;
    }

    public void setActions(List<Action<T>> actions) {
        this.actions = actions;
    }
}
